package cn.shop.cloud.service;


import cn.shop.cloud.domain.OrderInfo;

/**
 * @program: work
 * @ClassName IOrderInfoService
 * @description:
 * @author: 李尧坤
 * @create: 2025−01-09 19:44
 * @Version 1.0
 **/

public interface IOrderInfoService {

    /**
     *返回订单编号
     * @param id
     * @param seckillId
     * @return
     */
    public String doSeckill(Long id, Long seckillId);

    /**
     * 根据orderNo查找订单OrderInfo
     * @param orderNo  订单编号
     * @return
     */
    public OrderInfo find(String orderNo);

    /**
     * 取消订单
     * @param seckillId
     * @param orderNo
     */
    void cancelOrder(Long seckillId, String orderNo);
}
